package com.credithc.eagleeye.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * 描 述: <br/>
 * 作 者: zhangjin<br/>
 * 创 建：2019年01月28日<br/>
 * 版 本：v1.0.0<br>
 * <p>
 * 历 史: (版本) 作者 时间 注释 <br/>
 */
@ConfigurationProperties(prefix = "eagle.monitor.redis")
@Component
@Data
public class EagleMonitorRedisConfig {
    private int mode;
    private String address;
    private long maxWaitMillis = 5000L;
    private int maxTotal = 512;
    private int minIdle = 10;
    private int maxIdle = 64;
    private int timeout = 300000;
    private int maxRedirections = 6;
    private int database = 0;
    private boolean enable = true;
}
